package com.test.kk;

public class Count implements Cloneable{
	private static int num;
	private String s;
	private String t;
	
	public Count() {
		num++;
	}
	public void method() {
		Count t1 = new Count();
		Count t2 = new Count();
		try {
			Count t3 = (Count) t1.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
//		Count t4 = t2;
//		Count t5 = t1;
		Count t6 = new Count();
	}
	protected Object clone() throws CloneNotSupportedException {
		return super.clone();
	}
	public static void main(String[] args) {
		Count c = new Count();
		c.method();
		System.out.println(c.num);
	}
}
